package com.windy.controller;

import com.windy.app.vo.Result;
import com.windy.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("order")
public class OrderController {

    @Autowired
    private IOrderService orderService;


    @GetMapping("addOrder")
    public Result addOrder(@RequestParam(name = "orderId") int orderId){
        System.out.println("orderId:"+orderId);
        return orderService.addOrder(orderId);
    };

}
